package com.my.vote.pst.info;

import com.my.vote.entity.EVoteInfo;
import com.my.vote.entity.EVoteItem;
import com.my.vote.entity.req.ReqVoteItem;
import com.sfh.lib.mvp.IPresenter;
import com.sfh.lib.mvp.IView;
import com.sfh.lib.mvp.annotation.Service;

import java.util.List;

/**
 * 功能描述:
 *
 * @author
 * @date 2018/4/13
 */
@Service(achieve = PstVoteInfo.class)
public interface IPstVoteInfo extends IPresenter<IPstVoteInfo.IVItem> {
    interface IVItem extends IView{
        void onPageList(int nowPage,int allSize,List<EVoteItem> page);

        void onPageError(String error);

        void onVoteInfo(EVoteInfo voteInfo);

        void voteSuccess();
    }

    void listPage(ReqVoteItem req);

    void getVote(String voteId);

    void voteItem(EVoteInfo voteInfo,List<EVoteItem> select);
}
